home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950528-19950726
/
000035_news@columbia.edu_Wed May 31 06:39:30 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA21298
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Fri, 2 Jun 1995 05:51:38 -0400
Received: by apakabar.cc.columbia.edu id AA20721
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Fri, 2 Jun 1995 05:51:36 -0400
Path: news.columbia.edu!sol.ctr.columbia.edu!howland.reston.ans.net!gatech!news.mathworks.com!news.kei.com!nntp.et.byu.edu!news.provo.novell.com!news.cs.utah.edu!cc.usu.edu!jrd
From: jrd@cc.usu.edu (Joe Doupnik)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Kermit scripting problems
Message-Id: <1995May31.123930.52861@cc.usu.edu>
Date: 31 May 95 12:39:30 MDT
References: <D9G96t.7DF@cunews.carleton.ca>
Organization: Utah State University
Lines: 42
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <D9G96t.7DF@cunews.carleton.ca>, rmallett@boris.carleton.ca (Rick Mallett) writes:
> I've written some scripts to automate upload using kermit for
> users of a text based menu interface to Unix. I prompt the users for a
> list of files to upload and I would like to allow responses such as
> the following:
>
> Enter list of files to upload: c:\autoexec.bat c:\temp\*.*
>
> I've run into a couple of problems and I was wondering if anyone
> could give me some advice. I'm using expect/tcl to automatically
> generate sequences of instructions such as the following:
>
> apc server
> set command quoting off
> remote cd c:\
> get autoexec.bat
> remote cd c:\temp
> get *.*
> set command quoting on
> fin
> apc connect
>
> which will be executed by Unix kermit-5A-190 on the assumption that
> the remote machine is running MS-Kermit 3.14.
>
> One problem is that if the directory `c:\temp' does not exist the
> `get *.*' will upload all of the files in the current directory.
> I tried adding `if success get*.*' immediately after the command
> `remote cd c:\temp' but that doesn't work, presumably because the
> status on the remot
machine is not available for checking. Is
> there any way for me to detect in a script if the `remote cd'
> worked or not, and if not, is there a better way to do this?
> I also found that `remote cd c:' was not the same as `remote cd c:\',
> so I appended `\' to the string but then `remote cd c:\temp\'
> seemed to fail. Is this a bug?
----------
No, it's not a bug. It's DOS syntax. cd c: means to the current
directory on drive C (which DOS remembers), cd c:\ is to the root of
drive C, etc. Only the root path ends on a backslash.
Rather than issuing cd's just include the path with the wildcards,
as in get c:\temp\*.*.
Joe D.